#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
    int n = 0;
    double max = 0.0, min = 100.0, sum = 0.0, score = 0.0;
    scanf("%d", &n);
    int i = 0;
    for (i = 0; i < n; i++)
    {
        scanf("%lf", &score);
        if (max < score)
        {
            max = score;
        }
        if (min > score)
        {
            min = score;
        }
        sum += score;
    }
    printf("%.2lf %.2lf %.2lf", max, min, sum / n);
    return 0;
}